package r21310.chap04.练习;

import java.util.Scanner;

public class peigenpisa extends fulei{
    private int k;

    public int getK() {
        return k;
    }

    public void setK(int k) {
        this.k = k;
    }

    public peigenpisa(int size, int pice) {
        super(size, pice);
    }

    public void keshu(){
        System.out.println("请输入培根克数");
        Scanner s=new Scanner(System.in);
        int k=s.nextInt();
        setK(k);

    }

    public void name() {
        System.out.println("名称：培根披萨");
    }
    public void size(){
        System.out.println("请输入披萨大小");
        Scanner s=new Scanner(System.in);
        int b=s.nextInt();
        setSize(b);
    }
    public void pice(){
        System.out.println("请输入披萨价格");
        Scanner s=new Scanner(System.in);
        int a=s.nextInt();

        setPice(a);
    }

    public void pices(){
        System.out.println("价格"+getPice());

    }
    public void sizas(){
        System.out.println("尺寸"+getSize());
    }
    public void keshus(){
        System.out.println("克数"+getK());
    }


}
